import request from "../utils/request.js"
/* 获取活动详情（发布/参加的活动） */
export const userActivityDetailAPI = (data,token) => {
	return request({
		url: "/applets/user/user/getUserActivityDetail",
		method: "post",
		header: {
		     Token: token,  
		   },
		data
	})
}
export const getTaskList = (data) => {
	return request({
		url: "/applets/task/task/getTaskList",
		method: "post",
		data
	})
}

/* 获取参加活动的报名列表（发布者）（用户） */
export const applyActiveListAPI = (data) => {
	return request({
		url: "/applets/activity/activity/getApplyActivityList",
		method: "post",
		data
	})
}
/* 获取1级深度评论 */
export const getOneCommentListAPI = (data) => {
	return request({
		url: "/applets/activity/comment/getActivityComment",
		method: "post",
		data
	})
}
/* 获取更多评论 */
export const getMoreCommentListAPI = (data) => {
	return request({
		url: "/applets/activity/comment/getActivityCommentMore",
		method: "post",
		data
	})
}
/* 评论任务、回复评论 */
export const commentActivityAPI = (data) => {
	return request({
		url: "/applets/activity/comment/commentActivity",
		method: "post",
		data
	})
}
/* 点赞 */
export const likeCommentAPI = (data) => {
	return request({
		url: "/applets/activity/comment_like/likeComment",
		method: "post",
		data
	})
}
/* 取消点赞 */
export const cancelLikeCommentAPI = (data) => {
	return request({
		url: "/applets/activity/comment_like/cancelLikeComment",
		method: "post",
		data
	})
}
/* 取消活动喜欢 */
export const cancelLikeAPI = (data) => {
	return request({
		url: "/applets/activity/like/cancelLikeActivity",
		method: "post",
		data
	})
}
/* 添加活动喜欢 */
export const likeAPI = (data) => {
	return request({
		url: "/applets/activity/like/likeActivity",
		method: "post",
		data
	})
}
/* 活动收藏 */
export const favoriteActivityAPI = (data) => {
	return request({
		url: "/applets/activity/favorite/favoriteActivity",
		method: "post",
		data
	})
}
/* 活动取消收藏 */
export const cancelFavoriteActivityAPI = (data) => {
	return request({
		url: "/applets/activity/favorite/cancelFavoriteActivity",
		method: "post",
		data
	})
}
/* 打赏星光 */
export const tippingActivityAPI = (data) => {
	return request({
		url: "/applets/activity/tipping/tippingActivity",
		method: "post",
		data
	})
}
/* 查看签到码（发布者） */
export const SignCodeAPI = (data) => {
	return request({
		url: "/applets/activity/activity/makeSignCodeActivity",
		method: "post",
		data
	})
}
/* 拒绝用户报名 */
export const refuseApplyAPI = (data) => {
	return request({
		url: "/applets/activity/activity/refuseActivity",
		method: "post",
		data
	})
}
/* 取消活动（发布者） */
export const trueCancelActiveAPI = (data) => {
	return request({
		url: "/applets/activity/activity/closeActivity",
		method: "post",
		data
	})
}
/* 创建组局活动 */
export const createActiveAPI = (data) => {
	return request({
		url: "/applets/activity/activity/addActivity",
		method: "post",
		data
	})
}
/* 获取活动列表（首页-精选活动） */
export const selectedActiveAPI = (data) => {
	return request({
		url: "/applets/activity/activity/getActivityList",
		method: "post",
		data
	})
}
/* 首页-组局活动 */
export const homeActivityListAPI = (data) => {
	return request({
		url: "/applets/home/getHomeActivityList",
		method: "post",
		data
	})
}
/* 获取活动详情（首页-精选活动、首页-搜索、首页-组局活动） */
export const homeActiveDetailAPI = (data,token) => {
	return request({
		url: "/applets/activity/activity/getActivityDetail",
		method: "post",
		header: {
		     Token: token,  
		   },
		data
	})
}
/* 获取搜索列表数据 */
export const getSearchListAPI = (data) => {
	return request({
		url: "/applets/home/getSearchList",
		method: "post",
		data
	})
}
/* 报名活动*/
export const applyActiveAPI = (data) => {
	return request({
		url: "/applets/activity/activity/applyActivity",
		method: "post",
		data
	})
}
/*获取单个用户报名参加活动的信息 */
export const getApplyActivityUserInfoAPI = (data) => {
	return request({
		url: "/applets/activity/activity/getApplyActivityUserInfo",
		method: "post",
		data
	})
}
/*取消报名（用户） */
export const trueCancelApplyAPI = (data) => {
	return request({
		url: "/applets/activity/activity/cancelActivity",
		method: "post",
		data
	})
}
/*签到 */
export const signActivityAPI = (data) => {
	return request({
		url: "/applets/activity/activity/signActivity",
		method: "post",
		data
	})
}
/* 发布者确认签到 */
export const signActivityByPoster = (data) => {
	return request({
		url: "/applets/activity/activity/signActivityByPoster",
		method: "post",
		data
	})
}
/* 获取创建任务时的关联活动 */
export const joinActivityListAPI = (data) => {
	return request({
		url: "/applets/task/task/getJoinActivityList",
		method: "post",
		data
	})
}
/* 创建找伴任务 */
export const addTaskAPI = (data) => {
	return request({
		url: "/applets/task/task/addTask",
		method: "post",
		data
	})
}
/* 获取任务详情（找伴tab、用户的收藏、用户的发布、首页-搜索、首页-找伴任务） */
export const getTaskDetailAPI = (data,token) => {
	return request({
		url: "/applets/task/task/getTaskDetail",
		method: "post",
		 header: {
		      Token: token,  
		    },
		data
	})
}
/* 获取用户联系方式列表（购买） */
export const payUserContactListAPI = (data) => {
	return request({
		url: "/applets/user/contact/payUserContactList",
		method: "post",
		data
	})
}
/* 获取用户联系方式（查询） */
export const getPayContactStateAPI = (data) => {
	return request({
		url: "/applets/user/contact/getPayUserContact",
		method: "post",
		data
	})
}
/* 购买联系方式 */
export const payGetContactAPI = (data) => {
	return request({
		url: "/applets/user/contact/payUserContact",
		method: "post",
		data
	})
}
/* 任务上架（发布者） */
export const updateTaskStatusAPI = (data) => {
	return request({
		url: "/applets/task/task/updateTaskStatus",
		method: "post",
		data
	})
}
/* 刷新任务（发布者） */
export const refreshTaskAPI = (data) => {
	return request({
		url: "/applets/task/task/refreshTask",
		method: "post",
		data
	})
}
/* 任务添加喜欢 */
export const likeTaskAPI = (data) => {
	return request({
		url: "/applets/task/like/likeTask",
		method: "post",
		data
	})
}
/* 任务取消喜欢 */
export const cancelLikeTaskAPI = (data) => {
	return request({
		url: "/applets/task/like/cancelLikeTask",
		method: "post",
		data
	})
}
/* 任务添加收藏 */
export const favoriteTaskAPI = (data) => {
	return request({
		url: "/applets/task/favorite/favoriteTask",
		method: "post",
		data
	})
}
/* 任务取消收藏 */
export const cancelFavoriteTaskAPI = (data) => {
	return request({
		url: "/applets/task/favorite/cancelFavoriteTask",
		method: "post",
		data
	})
}
/* 获取任务列表（找伴tab） */
export const getTaskListAPI = (data) => {
	return request({
		url: "/applets/task/task/getTaskList",
		method: "post",
		data
	})
}
/* 获取首页找伴任务 */
export const getHomeTaskListAPI = (data) => {
	return request({
		url: "/applets/home/getHomeTaskList",
		method: "post",
		data
	})
}
/* 获取banner图 */
export const getBannerListAPI = (data) => {
	return request({
		url: "/applets/common/getBanner",
		method: "get",
		data
	})
}
/* 删除已取消的活动（发布者） */
export const deleteActivityAPI = (data) => {
	return request({
		url: "/applets/activity/activity/deleteActivity",
		method: "post",
		data
	})
}
/* 打赏任务星光 */
export const tippingTaskAPI = (data) => {
	return request({
		url: "/applets/task/tipping/tippingTask",
		method: "post",
		data
	})
}
/* 聊天打赏星光 */
export const messageTippingAPI = (data) => {
	return request({
		url: "/applets/message/messageTipping",
		method: "post",
		data
	})
}
/* 获取1级深度评论(任务) */
export const getTaskOneCommentListAPI = (data) => {
	return request({
		url: "/applets/task/comment/getTaskComment",
		method: "post",
		data
	})
}
/* 获取更多评论(任务) */
export const getTaskMoreCommentListAPI = (data) => {
	return request({
		url: "/applets/task/comment/getTaskCommentMore",
		method: "post",
		data
	})
}
/* 评论任务、回复评论(任务) */
export const commentTaskAPI = (data) => {
	return request({
		url: "/applets/task/comment/commentTask",
		method: "post",
		data
	})
}
/* 点赞(任务) */
export const likeTaskCommentAPI = (data) => {
	return request({
		url: "/applets/task/comment_like/likeComment",
		method: "post",
		data
	})
}
/* 取消点赞(任务) */
export const cancelLikeTaskCommentAPI = (data) => {
	return request({
		url: "/applets/task/comment_like/cancelLikeComment",
		method: "post",
		data
	})
}
/* 删除(任务) */
export const delterefreshTask = (data) => {
	return request({
		url: "/applets/task/task/refreshTask",
		method: "post",
		data
	})
}
// 删除用户报名活动
export const deleteApplyActivity = (data) => {
	return request({
		url: "/applets/activity/activity/deleteApplyActivity",
		method: "post",
		data
	})
}
//用户删除未被确认的任务认领
export const UserDeleteClaimTask = (data) => {
	return request({
		url: "/applets/task/claim/UserDeleteClaimTask",
		method: "post",
		data
	})
}
//用户的任务认领
export const UserClaimTask = (data) => {
	return request({
		url: "/applets/task/claim/UserClaimTask",
		method: "post",
		data
	})
}
//生成二维码
export const getUserActivitySignQrcode = (data) => {
	return request({
		url: "/applets/user/user/getUserActivitySignQrcode",
		method: "post",
		data
	})
}